package com.test.dao;

import com.test.entity.Adminuser;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface AdminuserDao {

    @Results({
            @Result(property = "lastLoginTime", column = "last_login_time")
    })
    @Select("select * from adminuser where name=#{adminuser.name} AND password =#{adminuser.password}")
    Adminuser getAdminUser(@Param("adminuser") Adminuser adminuser);


    List<Adminuser> queryAll(Adminuser adminuser);

    int deleteById(int id);
}
